public class Swapper
{
   /**
      This method swaps adjacent elements of the given array
      @param values an array
   */
   public void swapAdjacentElements(int[] values)
   {
      // your work here
      int l=values.length;
      if(l%2==1)
      l-=1;
      for(int i=0;i<l;i+=2){
         int m=values[i];
         values[i]=values[i+1];
         values[i+1]=m;
      }




   }
   
   
   // This method is used to check your work
   public int[] check(int[] values)
   {
      swapAdjacentElements(values);
      return values;
   }
}